package com.free.food.product.service.impl;

import com.free.food.product.entity.ProductCategory;
import com.free.food.product.repository.ProductCategoryRepository;
import com.free.food.product.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类功能描述：
 *
 * @author：刘富国
 * @createTime：2019-02-08 12:11
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private ProductCategoryRepository productCategoryRepository;

    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> typeList) {
        return productCategoryRepository.findByCategoryTypeIn(typeList);
    }
}
